<?php
  ob_start ();

  include_once 'configs/config.php';           
  include_once 'init.php';           

  // Instantiate the application.        
  $app = new Rest ();

  // Create database connection
  $dbconfig = array ();
  $dbconfig ['host'] = '127.0.0.1';
  $dbconfig ['user'] = 'root';
  $dbconfig ['pass'] = '';
  $dbconfig ['name'] = 'test';

  $db = db_mysql::getInstance ();
            
  // creat memcache object
  $memcache = new MemcacheManager ();
  // add servers
  $memcache->addserver ( '127.0.0.1', 11211 );

  // push data
  $app->process ();
        
  ob_end_flush ();
?>